﻿using UnityEngine;
using System.Collections;

public class Victory : MonoBehaviour {
	
	[SerializeField]
	private TextMesh _text;

	// Use this for initialization
	void Start () {
		
		_text.text = PlayerPrefs.GetString("GameOverText", "HOW DID YOU GET HERE?");
		
		StartCoroutine(Next());
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	private IEnumerator Next()
	{
		yield return new WaitForSeconds(3.0f);
		
		Application.LoadLevel(0);
	}
}
